import service from '@/service/request';

export function getBanners() {
  return service({
    url: '/banner',
  });
}
export function getHotRecommends(limit = 30) {
  return service({
    url: 'personalized',
    params: {
      limit,
    },
  });
}
export function getNewAlbums() {
  return service({
    url: '/album/newest',
  });
}
export function getRanking(id: number) {
  return service({
    url: '/playlist/detail',
    params: {
      id,
    },
  });
}

export function getResidentSingers() {
  return service({
    url: 'artist/list?cat=5001&limit=5',
  });
}

export function getTopAnchors(limit = 30) {
  return service({
    url: '/dj/toplist/popular',
    params: {
      limit,
    },
  });
}
